package com.tedu.day02.test;

import org.junit.Test;

public class 测试接口 {
    @Test
    public void Interface(){
        Insert insert=new Toy();
        Insert.jack();
        Toy toy(Toy)insert;
        toy.play();toy.jack();
        ((Toy)insert).play;

    }
    public void play(){
        System.out.println("玩玩具");
    }
}
